﻿<local:DocumentBase x:Class="WPFExcelReport.EK03HISTORY"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                xmlns:fd="clr-namespace:Labs.Filtering;assembly=ReflectionStudio.Core"
        xmlns:wep="clr-namespace:WPFExcelReport"
       Height="700" Width="1024" 
          
        Title="浆纱工艺表"  
     >
    <Grid DataContext="" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0">
            <Button Content="查询" Height="25" HorizontalAlignment="Left" Margin="11,17,0,0" Name="btnQuery"
                        Click ="btnQuery_Click" VerticalAlignment="Top" Width="106" />
            <Button Content="产生报表" Height="25" HorizontalAlignment="Left" Margin="11,17,0,0" Name="btnReport"
                        Click ="btnReport_Click" VerticalAlignment="Top" Width="106" />
        </WrapPanel> 
        <fd:FilteringDataGrid Grid.Row="1"
            AutoGenerateColumns="False" EnableRowVirtualization="True"  
                                             ItemsSource="{Binding Path=Pur_Mat_List}"
                                              x:Name="MasterData" 
                                                 CanUserReorderColumns="True"  
                                             CanUserResizeRows="True"
                                              CanUserSortColumns="True"
                                              IsFilteringCaseSensitive="False" 
                                              RowDetailsVisibilityMode="VisibleWhenSelected"   
                                              Width="1000"
                                              Height="600"
                                              EnableColumnVirtualization="True"  
                                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                              ScrollViewer.VerticalScrollBarVisibility="Auto"
                                              SelectionChanged="ItemsControls_SelectionChanged"
                                              >
            <DataGrid.Columns>
                <!--ABPAUFKRS;ABPAUFLFD;ABPAUFPOS;ABPART;ABPVAR;FACTORY;COLOR;ABPFARBE;QUANTITY;ABPSTARTDAT;ABPENDDAT;ACTENDDATE;-->
                <!--汇隆号	纱线编号	变量	纱线描述	色号	颜色	单前缀	单号	单行	供应商编号	供应商名称	开单数量	单位	单价	下单日期	首次到货日	完成日	已送货	总金额-->
                <DataGridTextColumn Binding="{Binding Path=CODE}" Header="汇隆号" Width="SizeToCells" MinWidth="60" />
                <DataGridTextColumn Binding="{Binding Path=ART}" Header="纱线编号" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=VAR}" Header="变量" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=DES}" Header="纱线描述" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=FARBE}" Header="色号" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=COLOR}" Header="颜色" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=AUFKRS}" Header="前缀" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=AUFLFD}" Header="单号" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=AUFPOS}" Header="单行" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=LIEFNR}" Header="供应商编号" Width="SizeToCells" MinWidth="120" />
                <DataGridTextColumn Binding="{Binding Path=SUPPLIER}" Header="供应商名称" Width="SizeToCells" MinWidth="120" />
                <DataGridTextColumn Binding="{Binding Path=ORDERQTY}" Header="开单数量" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=UNIT}" Header="单位" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=PRICE}" Header="单价" Width="SizeToCells" MinWidth="40" />
                <DataGridTextColumn Binding="{Binding Path=ORDERDATE}" Header="下单日期" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=STARTDATE}" Header="首次到货" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=ENDDATE}" Header="完成日期" Width="SizeToCells" MinWidth="80" />
                <DataGridTextColumn Binding="{Binding Path=DELQTY}" Header="已送货" Width="SizeToCells" MinWidth="60" />
                <DataGridTextColumn Binding="{Binding Path=VALUE}" Header="总金额" Width="SizeToCells" MinWidth="60" />
            </DataGrid.Columns>
        </fd:FilteringDataGrid>
    </Grid>
</local:DocumentBase >

